import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 * Date: 2024-04-18
 * Time: 23:29
 */
public class Demo7 {
    public static void main(String[] args) {
        try(Writer writer = new FileWriter("d:/text.txt",true)){
            while(true){
                writer.write("hello wangqi");
            }

        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
